﻿using AutoTest.Domain.Enums;

namespace AutoTest.Business.Vo.Product
{
    /// <summary>
    /// 商品选择Dto
    /// </summary>
    public class ProductListVo
    {
        ///<summary>
        /// 商品主键
        ///</summary>
        public long Id { get; set; } = 0;
        ///<summary>
        /// 商品名称
        ///</summary>
        public string ProductName { get; set; } = string.Empty;
        ///<summary>
        /// 排序值
        ///</summary>
        public int ListIndex { get; set; } = 0;
        ///<summary>
        /// 简介
        ///</summary>
        public string BriefDesc { get; set; } = string.Empty;
        /// <summary>
        /// 前端地址
        /// </summary>
        public string FrontPath { get; set; } = string.Empty;
        ///<summary>
        /// 状态（0：无效；1：有效）
        ///</summary>
        public EnumStatus Status { get; set; } = EnumStatus.Disable;
        /// <summary>
        /// 更新人
        /// </summary>
        public long? UpdateBy { get; set; }
        ///<summary>
        /// 更新时间
        ///</summary>
        public DateTime? UpdateTime { get; set; } = DateTime.Now;
    }

    /// <summary>
    /// 带有效时间
    /// </summary>
    public class ProductValidListVo : ProductListVo
    {
        /// <summary>
        /// 有效时间
        /// </summary>
        public DateTime ValidTime { get; set; }
    }
}
